<style>
    #baseContractor-detail .layui-form-label{
        width: 100px;
    }
    #baseContractor-detail .layui-input-block{
        margin-left: 130px;
    }
</style>

<div class="febs-container" id="baseContractor-detail">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="baseContractor-edit-form"  th:object="${baseContractor}">
            <div class="layui-row">
                <div class="layui-form-item febs-hide">
                    <label class="layui-form-label layui-form-label-detail">承包商Id：</label>
                    <div class="layui-input-block">
                        <input type="text" name="contractorId" class="layui-input" th:field="*{contractorId}">
                    </div>
                </div>
                <div class="layui-form-item  febs-hide">
                    <div class="layui-col-sm6" th:if="${hasHeadCompanyRole}">
                        <label class="layui-form-label layui-form-label-detail">公司名称：</label>
                        <div class="layui-input-block layui-input-block-html" th:text="*{tenantName}">

                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md12">
                        <label class="layui-form-label layui-form-label-detail ">承包商名称：</label>
                        <div class="layui-input-block layui-input-block-html" th:text="*{#strings.isEmpty(contractorName)}? '--' : *{contractorName}">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label layui-form-label-detail">承包商编号：</label>
                        <div class="layui-input-block layui-input-block-html" th:text="*{#strings.isEmpty(contractorCode)}? '--': *{contractorCode}">
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <label class="layui-form-label layui-form-label-detail">承包商简称：</label>
                        <div class="layui-input-block layui-input-block-html" th:text="*{#strings.isEmpty(shortName)}? '--': *{shortName}">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label layui-form-label-detail">承包商拼英：</label>
                        <div class="layui-input-block layui-input-block-html" th:text="*{#strings.isEmpty(contractorPinyin)}? '--': *{contractorPinyin}">
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <label class="layui-form-label layui-form-label-detail">承包商属性：</label>
                        <div class="layui-input-block layui-input-block-html" th:text="*{#strings.isEmpty(attribute)}? '--': *{attribute}">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md12">
                        <label class="layui-form-label layui-form-label-detail">实施部门：</label>
                        <div class="layui-input-block layui-input-block-html" th:text="*{#strings.isEmpty(constructionDepts)}? '--': *{constructionDepts}">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label layui-form-label-detail ">联系人：</label>
                        <div class="layui-input-block layui-input-block-html" th:text="*{#strings.isEmpty(contacts)}? '--': *{contacts}">
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <label class="layui-form-label layui-form-label-detail ">联系方式：</label>
                        <div class="layui-input-block layui-input-block-html" th:text="*{#strings.isEmpty(contactsPhone)}? '--': *{contactsPhone}">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md12">
                        <label class="layui-form-label layui-form-label-detail ">状态：</label>
                        <div class="layui-input-block layui-input-block-html" th:switch="*{status}">
                            <p th:case="0">禁用</p>
                            <p th:case="1">启用</p>
                            <p th:case="*">--</p>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var baseContractorData = [[${baseContractor}]];
</script>
<script th:src="@{/febs/js/contractor/baseContractor/baseContractorDetail.js(v=1)}"></script>